package com.etc.controller;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import com.etc.entity.Stats;
import com.etc.service.StatsService;
import com.etc.util.StatsData;
/**
 * 后台图表
 * @author Administrator
 *
 */
@Controller
public class Statscontrol {
	@Resource
	private StatsService ss;
	
	@RequestMapping(value="statsd",method=RequestMethod.GET)
	@ResponseBody
	public List<Stats> Statsget(){
		List<Stats> list = ss.selectStats();
		//StatsData data=new StatsData<>(list);
		return list;
	}
}
